class PopulateWithDefaultBlog < ActiveRecord::Migration
  def self.up
    Blog.create(:name => 'myblog', :title => "My Blog", :subtitle => "Configure this blog to change this subtitle!")
    User.create(:login => 'blogger', :password => 'yarbo!', :password_confirmation => 'yarbo!')
  end

  def self.down
    Blog.find_by_name('myblog').destroy
    User.find_by_login('blogger').destroy
  end
end
